C++控制符的问题`

来源:百度知道 编辑:UC知道 时间:2024/05/15 11:22:54
请帮我看下:
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{ int a=123456;
cout<<chex<<a;
return 0;
}

控制符chex要怎么用
hex是为16进制的基数,能输出来,可chex怎么输出错误
error C2065: 'chex' : undeclared identifier(顺便帮我翻译下)
我想知道控制符chex是怎么用是,是不是用做声明的,比如int一样

/*
标准库里好像没有chex这个控制符
是不是这个啊?
补充,chex没有被声明的变量
也就是说系统不认这个chex。
比如说你要int a;
写成cint a;就会错啊。
我先去吃个饭,老婆催我,呵呵。回来咱们再讨论。
不知道你想实现什么功能?
*/
#include <iostream.h>
#include <iomanip>

int main()
{ int a=123456;
cout<<hex<<a;
return 0;
}